package com.zs.demo.status;

import com.zs.demo.common.response.IResponseStatus;
import com.zs.demo.common.util.BussinessCode;
import lombok.AllArgsConstructor;

/* @Desc: 角色-响应状态码
 * @author:zhengs
 * @Time: 2018/11/20 10:07
 * @Copyright: © zhengs 版权所有  
 * @Warning: 本内容仅限于本公司内部传阅,禁止外泄或用于其它商业目的
 */
@AllArgsConstructor
public enum RoleStatus implements IResponseStatus {
    ROLE_EXISTS(BussinessCode.LOGIN +100,"该角色已存在"),
    ROLE_NOT_EXISTS(BussinessCode.LOGIN +101,"该角色不存在"),
    ROLE_USER(BussinessCode.LOGIN +103,"该角色已绑定用户不能删除，请先接触绑定！");

    public Integer code;

    public String msg;

    public Integer getStatus(){
        return this.code;
    }

    public String getMsg(){
        return this.msg;
    }
}
